package com.ruoyi.inspection.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.inspection.mapper.TPeopleDatesMapper;
import com.ruoyi.inspection.domain.TPeopleDates;
import com.ruoyi.inspection.service.ITPeopleDatesService;

/**
 * 人员日期关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-04
 */
@Service
public class TPeopleDatesServiceImpl implements ITPeopleDatesService 
{
    @Autowired
    private TPeopleDatesMapper tPeopleDatesMapper;

    /**
     * 查询人员日期关联
     * 
     * @param id 人员日期关联主键
     * @return 人员日期关联
     */
    @Override
    public TPeopleDates selectTPeopleDatesById(String id)
    {
        return tPeopleDatesMapper.selectTPeopleDatesById(id);
    }

    /**
     * 查询人员日期关联列表
     * 
     * @param tPeopleDates 人员日期关联
     * @return 人员日期关联
     */
    @Override
    public List<TPeopleDates> selectTPeopleDatesList(TPeopleDates tPeopleDates)
    {
        return tPeopleDatesMapper.selectTPeopleDatesList(tPeopleDates);
    }

    /**
     * 新增人员日期关联
     * 
     * @param tPeopleDates 人员日期关联
     * @return 结果
     */
    @Override
    public int insertTPeopleDates(TPeopleDates tPeopleDates)
    {
        return tPeopleDatesMapper.insertTPeopleDates(tPeopleDates);
    }

    /**
     * 修改人员日期关联
     * 
     * @param tPeopleDates 人员日期关联
     * @return 结果
     */
    @Override
    public int updateTPeopleDates(TPeopleDates tPeopleDates)
    {
        return tPeopleDatesMapper.updateTPeopleDates(tPeopleDates);
    }

    /**
     * 批量删除人员日期关联
     * 
     * @param ids 需要删除的人员日期关联主键
     * @return 结果
     */
    @Override
    public int deleteTPeopleDatesByIds(String[] ids)
    {
        return tPeopleDatesMapper.deleteTPeopleDatesByIds(ids);
    }

    /**
     * 删除人员日期关联信息
     * 
     * @param id 人员日期关联主键
     * @return 结果
     */
    @Override
    public int deleteTPeopleDatesById(String id)
    {
        return tPeopleDatesMapper.deleteTPeopleDatesById(id);
    }
}
